package org.edu.modules.noderes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_cuz_node_res")
@ApiModel(value="ve_cuz_node_res对象", description="课程内容")
public class VeCuzNodeRes
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("课程ID")
    private Integer courseid;
    @ApiModelProperty("章节ID")
    private Integer nodeid;
    @ApiModelProperty("资源ID")
    private Integer resid;
    @ApiModelProperty("内容名称")
    private String title;
    @ApiModelProperty("内容类型：res资源，html图文")
    private String type;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("排序值（从小到大排序）")
    private Integer listsort;
    @ApiModelProperty("终端ID")
    private Integer terminalid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeCuzNodeRes setNodeid(Integer nodeid)
    {
        this.nodeid = nodeid;return this;
    }

    public VeCuzNodeRes setCourseid(Integer courseid)
    {
        this.courseid = courseid;return this;
    }

    public VeCuzNodeRes setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeCuzNodeRes(id=" + getId() + ", courseid=" + getCourseid() + ", nodeid=" + getNodeid() + ", resid=" + getResid() + ", title=" + getTitle() + ", type=" + getType() + ", content=" + getContent() + ", listsort=" + getListsort() + ", terminalid=" + getTerminalid() + ", placeId=" + getPlaceId() + ")";
    }

    public VeCuzNodeRes setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeCuzNodeRes setTerminalid(Integer terminalid)
    {
        this.terminalid = terminalid;return this;
    }

    public VeCuzNodeRes setListsort(Integer listsort)
    {
        this.listsort = listsort;return this;
    }

    public VeCuzNodeRes setContent(String content)
    {
        this.content = content;return this;
    }

    public VeCuzNodeRes setType(String type)
    {
        this.type = type;return this;
    }

    public VeCuzNodeRes setTitle(String title)
    {
        this.title = title;return this;
    }

    public VeCuzNodeRes setResid(Integer resid)
    {
        this.resid = resid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $courseid = getCourseid();result = result * 59 + ($courseid == null ? 43 : $courseid.hashCode());Object $nodeid = getNodeid();result = result * 59 + ($nodeid == null ? 43 : $nodeid.hashCode());Object $resid = getResid();result = result * 59 + ($resid == null ? 43 : $resid.hashCode());Object $listsort = getListsort();result = result * 59 + ($listsort == null ? 43 : $listsort.hashCode());Object $terminalid = getTerminalid();result = result * 59 + ($terminalid == null ? 43 : $terminalid.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $title = getTitle();result = result * 59 + ($title == null ? 43 : $title.hashCode());Object $type = getType();result = result * 59 + ($type == null ? 43 : $type.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeCuzNodeRes;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeCuzNodeRes)) {
            return false;
        }
        VeCuzNodeRes other = (VeCuzNodeRes)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$courseid = getCourseid();Object other$courseid = other.getCourseid();
        if (this$courseid == null ? other$courseid != null : !this$courseid.equals(other$courseid)) {
            return false;
        }
        Object this$nodeid = getNodeid();Object other$nodeid = other.getNodeid();
        if (this$nodeid == null ? other$nodeid != null : !this$nodeid.equals(other$nodeid)) {
            return false;
        }
        Object this$resid = getResid();Object other$resid = other.getResid();
        if (this$resid == null ? other$resid != null : !this$resid.equals(other$resid)) {
            return false;
        }
        Object this$listsort = getListsort();Object other$listsort = other.getListsort();
        if (this$listsort == null ? other$listsort != null : !this$listsort.equals(other$listsort)) {
            return false;
        }
        Object this$terminalid = getTerminalid();Object other$terminalid = other.getTerminalid();
        if (this$terminalid == null ? other$terminalid != null : !this$terminalid.equals(other$terminalid)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$title = getTitle();Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title)) {
            return false;
        }
        Object this$type = getType();Object other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();return this$content == null ? other$content == null : this$content.equals(other$content);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getCourseid()
    {
        return this.courseid;
    }

    public Integer getNodeid()
    {
        return this.nodeid;
    }

    public Integer getResid()
    {
        return this.resid;
    }

    public String getTitle()
    {
        return this.title;
    }

    public String getType()
    {
        return this.type;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getListsort()
    {
        return this.listsort;
    }

    public Integer getTerminalid()
    {
        return this.terminalid;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
